<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="" />
        <meta name="Description" content="" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <title>确认订单</title>
        <link rel="shortcut icon" href="favicon.ico" />
        <link rel="stylesheet" type="text/css" href="__CSS__/home/68ecshop_common.css" />
        <link rel="stylesheet" type="text/css" href="__CSS__/home/flow.css" />
        <link rel="stylesheet" type="text/css" href="__CSS__/home/shopping.css" />
        <script src="__JQ__" type="text/javascript" charset="utf-8"></script>
        <script src="__JS__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
        <script src="__JS__/taodudu.lib.js" type="text/javascript" charset="utf-8"></script>
        <script src="__JS__/home/order.js" type="text/javascript" charset="utf-8"></script>
        <script src="__JS__/home/utils.js" type="text/javascript" charset="utf-8"></script>
        <style type="text/css">
            .jm_cartnum {width: 80px;}
        </style>
    </head>

    <body style="cursor:auto">
        <include file='Public/head_a' />
        <div class="header w990">
            <div class="mall-logo">
                <a href="#"><img src="__IMG__/home/logo.png"></a>
            </div>
            <div class="shopping_main2_box Common">
                <div class="shopping_main2"><strong>提交订单</strong>
                    <p>提交订单后请在<span>20</span>分钟内完成支付</p>
                </div>
            </div>
        </div>
        <div class="block_jm">
            <form name="theForm" id="theForm" method="post" action="" style="border:1px solid #ddd; width: 1000px; margin: 0 auto;padding-bottom: 20px;">
                <div id="Personal_address" class="checkBox_jm clearfix">
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#Personal_address").html(Aajaxobj("{:U('/Trader/reloadAddress')}"));
                        })
                    </script>
                </div>
                <div id="inventory" class="checkBox_jm">
                    <div class="title">商品清单</div>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="checkgoods">
                        <tbody>
                            <tr>
                                <th width="50%" align="left" class="tdone">商品</th>
                                <th>数量</th>
                                <th>小计</th>
                            </tr>
                            <tr>
                                <td colspan="5" style="background:#FAFAFA;border-top:1px solid #eee;font-weight:700;padding:5px 10px">{$goods['store_name']}</td>
                            </tr>
                            <tr>
                                <td width="30%" style="border-top:none">
                                    <div class="thumb_name">
                                        <dl>
                                            <dt>
                                                <a href="http://www.taodudu.com.cn/Goods/3492" target="_blank">
                                                    <img src="{$integral['integral_thumb']}!100x100" style="border:1px solid #eee" title="{$integral['integral_title']}"></a>
                                            </dt>
                                            <dd>
                                                <a href="http://www.taodudu.com.cn/Goods/3492" target="_blank" class="f6">{$integral['integral_title']}</a><br>
                                                    <input type="hidden" name="integral_id" id="integral_id" value="{$integral['integral_id']}" />
                                                    <font class="attrname">默认</font>
                                            </dd>
                                        </dl>
                                    </div>
                                </td>
                                <td width="10%" align="center" style="border-top:none">
                                    <div class="jm_cartnum">1</div>
                                </td>
                                <td width="10%" align="center" class="price_font m_parice" style="border-top:none">￥<span>{$integral['integral_price']}</span></td>
                            </tr>
                            <tr>
                                <td colspan="4" bgcolor="#ffffff" align="left" class="shipping_type"><span id="picktxt916"></span><p class="shipping_desc" id="desc_916">由商家选择合作快递为您配送： 免运费</p></td>
                            </tr>
                        </tbody>
                    </table>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="checkgoods" style="border-top:0">
                        <tbody>
                            <tr>
                                <td colspan="4" class="tdother2">
                                    <div class="checkout_other">
                                        <a class="jmbag" href="javascript:void(0);" onclick="showCheckoutOther(this);"><span>+</span>订单留言</a>
                                        <table class="subbox_other" width="100%">
                                            <tbody width="100%" cellpadding="5" cellspacing="0">
                                                <tr>
                                                    <td align="right" width="100" valign="top">订单留言：</td>
                                                    <td colspan="4"><textarea name="postscript" cols="80" rows="3" id="postscript" class="textarea"></textarea></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="blank10"></div>
                </div>
                <div class="order-facility facility">
                    <div class="order-anonymous" id="anonymous_2"></div>
                    <div class="order-anonymous" id="anonymous_1"></div>
                </div>
                <div class="flowBox_jm clearfix">
                    <div class="order-payInfo" id="payInfo_1">
                        <div class="payInfo-wrapper">
                            <div class="payInfo-shadow">
                                <div class="order-realPay" id="realPay_1">
                                    <div>
                                        <span class="realPay-title">兑换积分：</span>
                                        <span class="order-price">￥</span>
                                        <span class="realPay-price">{$integral['integral_price']}</span>
                                        <input class="ztotalPriceinput" type="hidden" value="{$integral['integral_price']}" />
                                    </div>
                                </div>
                                <div class="order-confirmAddr" id="confirmAddr_1">
                                    <script type="text/javascript">
                                        $(document).ready(function () {
                                            $("#confirmAddr_1").html(Aajaxobj("{:U('/Trader/defaultAdderss')}"));
                                        })
                                    </script>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="dibu_anniu" style="text-align: right;">
                        <input class="ConfirmOrder" type="button" onclick="return selcart_submit();" name="submit" id="submit" value="确认兑换" />
                    </div>
                </div>
            </form>
        </div>
        <div style="width: 100%; height: 25px;"></div>
        <div class="site-footer">
            <div class="footer-related">
                <div class="footer-info clearfix">
                    <div class="links">
                        <a href="#" target="_blank" title="郑州日报"><img src="__IMG__/home/links/01.jpg"></a>
                        <a href="#" target="_blank" title="郑州晚报"><img src="__IMG__/home/links/02.jpg"></a>
                        <a href="#" target="_blank" title="中原网"><img src="__IMG__/home/links/03.jpg"></a>
                        <a href="#" target="_blank" title="中原地铁报"><img src="__IMG__/home/links/04.jpg"></a>
                        <a href="#" target="_blank" title="社区播报"><img src="__IMG__/home/links/05.jpg"></a>
                    </div>
                    <div class="info-text">
                        <p class="nav_bottom">
                            <a href="apply_index.php">商家入驻</a><em>|</em>
                            <a href="sitemaps.xml">站点地图</a><em>|</em>
                            <a href="help.php">帮助中心</a><em style="display:none">|</em> ICP备案证书号:
                            <a href="http://www.miibeian.gov.cn/" target="_blank">豫B2-20160162-1</a>
                        </p>
                        <p>
                            <a href="javascript:;">© 2005-2016 淘嘟嘟 版权所有，并保留所有权利。</a>
                            <a href="javascript:;">河南省电子商务产业园 </a>
                            <a href="javascript:;"> Tel: 4000371775 </a>
                            <a href="javascript:;"> E-mail: sever@taodudu.com </a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<script type="text/javascript">
    function selcart_submit() {
//        var address = $('#address_id').val();
//        if (address == null || address == "") {
//            layer.msg('请填写您的邮寄地址！');
//            return  false;
//        }
        
        var integral_id = $('#integral_id').val();
        layer.confirm('您确定兑换此物品吗？',{btn: ['是的', '算了'] },function(){
                dete = {integral_id:integral_id};
                var p = Aajax("{:U('Integral/exchange')}", dete);
                if (p.state){
                    layer.msg(p.msg,{time:1000}, function () {
                        window.location.href = "/User/integral";
                    });
                } else{
                    layer.msg(p.msg);
                }
            }
        );
    }
</script>